Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODObject


HasExtension

The HasExtension method returns a Boolean value that indicates whether the object supports the specified extension.

ODBoolean HasExtension (in ODType extensionName);
extensionName
The name of the extension to look for.
return value
kODTrue if the object supports the specified extension, otherwise kODFalse.
DISCUSSION
Your part can call this method before accessing an object's extension.

The ODObject class has no inherent extensions of its own and always returns kODFalse.

OVERRIDING
Your subclass of ODPart can override this method if your part supports extensions. If your part does not support the specified extension, your override method must call its inherited HasExtension method at the end of your implementation.

SEE ALSO
The ODObject::AcquireExtension method (page 440).
The ODObject::ReleaseExtension method (page 444).
The ODPart class (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Making Your Semantic-Interface Extension Available" on page 433 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help